﻿@model Webcar.Entitys.USER_GROUP
@using (Ajax.BeginForm("EditGroupSave", "Account",
    new AjaxOptions
    {
        HttpMethod = "POST",
        UpdateTargetId = "error-content",
        InsertionMode = InsertionMode.Replace
    }))
{
    @Html.AntiForgeryToken()
    <div id="edit-car">
        @Html.HiddenFor(a => a.GROUP_CODE)

        <table class="edit-table">
            <tr>
                <td style="width: 80px; text-align: right">*组名：</td>
                <td style="width: 200px">@Html.TextBoxFor(a => a.GROUP_NOTE, new { @style = "width: 100%;", @onkeyup = "this.value=this.value.toUpperCase();" })</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right">说明：</td>
                <td style="width: 200px">@Html.TextBoxFor(a => a.NOTE, new { @style = "width: 100%;", @onkeyup = "this.value=this.value.toUpperCase();" })</td>
            </tr>
            <tr>
                <td style="width: 80px; text-align: right">是否默认组：</td>
                <td style="width: 200px">@Html.CheckBoxFor(a => a.IsDefault, new { @style = "width: 100%;", @onkeyup = "this.value=this.value.toUpperCase();" })</td>
            </tr>
        </table>
        <br />
        @Html.ErrorLabel("error-content")

    </div>
    <div class="edit-button">
        @Html.DevExpress().Button(settings =>
        {
            settings.Name = "Button3";
            settings.Text = "保存";
            settings.UseSubmitBehavior = true;
            //settings.ClientSideEvents.Click = "function(s, e){ pcModalMode.Hide();  }";
            settings.Width = 70;
            settings.ControlStyle.CssClass = "button1";
        }).GetHtml()
        @Html.DevExpress().Button(settings =>
        {
            settings.ControlStyle.CssClass = "button2";
            settings.Name = "Button2";
            settings.Text = "取消";
            settings.Width = 70;
            settings.ClientSideEvents.Click = "function(s, e){ pcModalMode.Hide(); }";

        }).GetHtml()
    </div>
}

